CREATE OR REPLACE FUNCTION lpd_iface_trans_next() RETURNS integer AS '
--version 0.1
--created by Postelnicu Mihai (mihai@code.ro)
DECLARE
       max_id integer;
BEGIN

	 SELECT MAX(id) INTO max_id FROM iface_trans;
	 RETURN max_id+1;
END;
' language 'plpgsql';
